<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>register</title>
    <%--如果两次密码不相同,关联RegisterServlet中if判断密码是否正确中的else--%>
    <script>
        var status = '${sessionScope.passwordError}';
        if (status == "yes") {
            alert("输入信息有误，请重新输入")
        }
    </script>
</head>
<body>
<h1>欢迎来到登陆界面</h1>
<hr>  <%--分割线--%>
<div>
    <%--form表单--%>
    <form action="${pageContext.request.contextPath}/login.do" method="post">
        <p>用户名：<input type="text" name="username" required></p>
        <p>密码：<input type="password" name="password" required></p>
        <p>
            <input type="submit" value="提交">
            <input type="reset" value="重置">
        </p>
    </form>
</div>
</body>
</html>